package com.lagou.edu.client;

import com.lagou.edu.client.impl.AuthCodeClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: yeqingyun
 * @Date: 2020/11/20 20:07
 */
@FeignClient(value = "lagou-service-code", path="code", fallback = AuthCodeClientFallback.class)
public interface AuthCodeClient {

    @RequestMapping("/validate/{email}/{code}")
    Integer validate(@PathVariable("email") String email, @PathVariable("code") String code);
}
